<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<html>
<head>
<style>
	#left {float:padding:5px 5px 5px 5px;width:70%;}
   #right {float:right;width:28%;}
</style>

</head>
<body marginheight="0">
<div id="left">您的网摘列表
<form onsubmit="searchSnippet();return false;"><input type="text"
	id="search" value=""></input><input type="submit" value="搜索"
	onclick="javascript:searchSnippet()"></input></form>
<div id="mySnippet"></div>
</div>

<div id="right">
<p>
<h2>我的标签：</h2>
<a href="javascript:refreshSnippet('',1)"><font
	style="font-size:200%;line-height: 1.3;">我的全部网摘</font></a>&nbsp;
<div id="myTag"></div>
</div>
<script type='text/javascript'>
    function refreshSnippet(tag,page)
    {
       $("#mySnippet").html("载入中...");
       $("#mySnippet").load("listFansSnippet.ajax",{tag:tag,page:page},function(){$$("search") .value=tag;});
    }
    
   function refreshTag()
    {
       $("#myTag").html("载入中...");
       $("#myTag").load("listFansTag.ajax");
    }
    
    function searchSnippet(){
    	var tag=$$("search").value;
    	 refreshSnippet(tag,1);
    }
    
    function clickTag(tag){
         refreshSnippet(tag,1);
   }
    refreshTag();
    refreshSnippet('',1);
    
</script>
</body>
</html>
